package com.crm.utils;

import org.apache.commons.lang3.RandomStringUtils;

//随机编号工具类
public class CodeGeneratorUtil {

        public static String generateRandomCode(int length) {
            // 可选字符集：大小写字母 + 数字
            String chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
            return RandomStringUtils.random(length, chars);
        }

}
